﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace CashOrCard.Models
{
    public class User
    {
        [Key]
        public int UserId { get; set; }        
        public string Email { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Password { get; set; }
        public string ZipCode { get; set; }
        public string CompanyName { get; set; }
        public string PrimaryPhoneNumber { get; set; }
        public string AltPhoneNumber{get; set;}
        public decimal Amount { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime? LastLoginDate { get; set; }
        public bool IsApproved { get; set; }
        public bool IsEnable { get; set; }
        public int RoleId { get; set; }
        [ForeignKey("RoleId")]
        public virtual Role Role { get; set; }        

        public virtual ICollection<PaymentHistory> PaymentHistories { get; set; }
        public virtual ICollection<AdvtSite> AdvtSites { get; set; }
    }
}